home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / go-fishing.swf / scripts / DefineButton2_281 / BUTTONCONDACTION on(press).as
Text File  |  2011-01-13  |  441b  |  20 lines

  1. on(press){
  2.    i = "1";
  3.    temp = eval("/:sorce");
  4.    t_name = eval("/:name");
  5.    while(i < "8")
  6.    {
  7.       if(eval("/:no_" add i) < temp)
  8.       {
  9.          temp_a = eval("/:no_" add i);
  10.          set("/:no_" add i,temp);
  11.          temp = temp_a;
  12.          temp_name = eval("/:no_name_" add i);
  13.          set("/:no_name_" add i,eval("/:t_name"));
  14.          t_name = temp_name;
  15.       }
  16.       i += "1";
  17.    }
  18.    gotoAndStop(532);
  19. }
  20.